function initAdminFunction(){
	ajaxGlobalSetting();
	initDialog();
	initTabs();
	refreshYear();
	initUnits($(".unitGroup[name='unitNo_1']"),1);
	initYearList();
	initItemList();
	initUnitList();
	initStuList(true);
	initUnitPaymentDetailList();
	initStuPaymentDetailList();
	initTeacherList();
	getItems();//init items for payment item config.
	downLoadUploadTemplate();
	downloadReport();
	//add by chamdenjo@gmail.com
	downloadUnit();
	downloadUnitTemplate();
	
	downloadStuReport();
}
function initDialog(){
	$("#stuPaymentDetail,#unitPaymentDetail").dialog({
		autoOpen: false,
		width: 460,
		modal: true,
		buttons: {
			"确定": function() {
				$( this ).dialog( "close" );
			},
			"取消": function() {
				$( this ).dialog( "close" );
			}
		}
	});
}
function initTabs(){
	$("#tabs").tabs({
		select : function(event, ui) {
			if(ui.index==0){
				$(".search",$("#tabs-2")).hide();
			}else{
				$(".search",$("#tabs-2")).show();
			}
		}
	});
}
